#ifndef LOG_MESSAGE_TEMPLATES_H
#define LOG_MESSAGE_TEMPLATES_H

namespace smsrouter {

namespace logtemplates {

static const char CONF_NOT_FOUND_KEY_1[] =
  "Config parse error! Not found key '$10$'!";
static const char CONF_NOT_FOUND_KEY_1_2[] =
  "Config parse error! Not found key '$10$/$11$'!";
static const char ERROR_EXEC_SQL_QUERY[] =
  "Error execute SQL query on action ($25$) "
  "error code ($3$) "
  "error message ($4$)";

static const char UD_QT_LOG_MSG[] = "Qt system generate log message ($1$)";
static const char UD_CONFIG_ACCESS_ERR[] = "Access error config file $2$";
static const char UD_CONFIG_PARSE_ERR[] = "Perse error config file $2$";
static const char UD_CONFIG_READ_ERR[] = "Read error config file $2$";

static const char K_STARTING_STATE[] = "Kernel starting";
static const char K_STARTED_STATE[] = "Kernel started";
static const char K_STOPING_STATE[] = "Kernel stoping";
static const char K_STOPED_STATE[] = "Kernel stoped";
static const char K_ERROR_STATE[] = "Kernel error";
static const char K_INIT_ERR[] = "Kernel not found last message id";
static const char K_SRC_SUBMIT_ROUTED[] = "Routed message ($17$) "
                                          "from source session ($15$) to "
                                          "destination session ($16$)";

static const char K_TRANSFORM_SRC_SUBMIT[] =
  "Transform source SubmitSM ($17$) "
  "on source address $19$:$20$:$21$ to $19$:$20$:$21$ "
  "from destination address $22$:$23$:$24$";
static const char K_FILTER_SRC_SUBMIT[] =
  "Filter source SubmitSM ($17$) error_code ($3$)";
static const char K_FILTER_DEST_SUBMIT[] =
  "Filter destination SubmitSM ($17$) error_code ($3$)";
static const char K_TRANSFORM_SRC_DELIVER[] =
  "Transform source DeliverSM ($17$) "
  "on destination address $22$:$23$:$24$ to $22$:$23$:$24$ "
  "from source address $19$:$20$:$21$";
static const char K_BILLING_CL_OPEN[] =
  "Connect billing RPC client $26$:$27$ -> $28$:$29$";
static const char K_BILLING_CL_CLOSE[] =
  "Disconnect billing RPC client $28$:$29$";
static const char K_BILLING_CL_ERROR[] =
  "Error ($4$) from billing RPC client $28$:$29$";
static const char K_BILLING_CL_DONE[] =
  "Done request ($35$) success($34$) from billing RPC client $28$:$29$";
static const char K_BILLING_CL_FAULT[] =
  "Fault request ($35$) code $3$ message $4$ from billing RPC client $28$:$29$";
static const char K_BILLING_CL_REQUEST_1[] =
  "Send request $35$($36$) from billing RPC client $28$:$29$";
static const char K_BILLING_CL_REQUEST_2[] =
  "Send request $35$($36$, $36$) from billing RPC client $28$:$29$";
static const char K_RPC_SRV_OPEN[] =
  "New session RPC server $28$:$29$ -> $26$:$27$";
static const char K_RPC_SRV_CLOSE[] = "Close session RPC server $28$:$29$";
static const char K_RPC_SRV_ERROR[] = "Error ($4$) from RPC server $26$:$27$";
static const char K_RPC_SRV_LISTEN[] = "Rpc server listen on $26$:$27$";
static const char K_RPC_SRV_NOT_LISTEN[] = "Rpc server not listen on $26$:$27$";

static const char M_STARTING_STATE[] = "Mailer starting";
static const char M_STARTED_STATE[] = "Mailer started";
static const char M_STOPING_STATE[] = "Mailer stoping";
static const char M_STOPED_STATE[] = "Mailer stoped";
static const char M_ERROR_STATE[] = "Mailer error";
static const char M_NOT_FOUND_TABLE_SRC_SM[] =
  "Mailer not found table from write source SubmitSM ($17$) "
  "on destination address $22$:$23$:$24$";
static const char M_NOT_FOUND_TABLE_SRC_DM[] =
  "Mailer not found table from write source DeliverSM ($17$) "
  "on source address $19$:$20$:$21$";
static const char M_NOT_FOUND_TABLE_DST_SM[] =
  "Mailer not found table from write destination SubmitSM ($17$) "
  "on destination address $22$:$23$:$24$";
static const char M_NOT_FOUND_TABLE_DST_DM[] =
  "Mailer not found table from write destination DeliverSM ($17$) "
  "on source address $19$:$20$:$21$";

static const char SM_STARTING_STATE[] = "Session manager starting";
static const char SM_STARTED_STATE[] = "Session manager started";
static const char SM_STOPING_STATE[] = "Session manager stoping";
static const char SM_STOPED_STATE[] = "Session manager stoped";
static const char SM_ERROR_STATE[] = "Session manager error";
static const char SM_LISTEN_SRC_SERVER[] =
  "Start listen source server on $26$:$27$";
static const char SM_NOT_LISTEN_SRC_SERVER[] =
  "No listen source server on $26$:$27$ "
  "error code ($3$) error message ($4$)";
static const char SM_OPEN_SRC_SESSION[] =
  "Open source session from $28$:$29$ on $26$:$27$";
static const char SM_OPEN_DEST_SESSION[] =
  "Open destination session id:$16$ from $26$:$27$ on $28$:$29$";
static const char SM_CLOSE_SRC_SESSION[] =
  "Close source session id:$15$ from $28$:$29$ on $26$:$27$";
static const char SM_CLOSE_DEST_SESSION[] =
  "Close destination session id:$16$ from $26$:$27$ on $28$:$29$";
static const char SM_RESTART_DEST_SESS[] =
  "Restart destination session id:$16$ on time $31$ ms";
static const char SM_NOT_RESTART_DEST_SESS[] =
  "Not restart destination session id:$16$! Incorrect recovery time!";
static const char SM_ERROR_SRC_SESSION[] =
  "Error source session id $15$ from $28$:$29$ on $26$:$27$ "
  "error code ($3$) "
  "error message ($4$)";
static const char SM_ERROR_DEST_SESSION[] =
  "Error destination session id $16$ from $26$:$27$ on $28$:$29$ "
  "error code ($3$) "
  "error message ($4$)";
static const char SM_SEND_DEST_SESSION[] =
  "Send packet ($32$) dump ($33$) "
  "from destination session id ($16$) "
  "from $26$:$27$ on $28$:$29$";
static const char SM_NOT_SEND_DEST_SESSION[] =
  "Not send packet ($32$) dump ($33$) "
  "from destination session id ($16$) "
  "error message ($4$)";
static const char SM_SEND_SRC_SESSION[] =
  "Send packet ($32$) dump ($33$) "
  "from source session id ($15$) "
  "from $28$:$29$ on $26$:$27$";
static const char SM_NOT_SEND_SRC_SESSION[] =
  "Not send packet ($32$) dump ($33$) "
  "from source session id ($15$) "
  "error message ($4$)";
static const char SM_RECEIVE_SRC_SESSION[] =
  "Receive packet ($32$) dump ($33$) "
  "from source session id ($15$) "
  "from $28$:$29$ on $26$:$27$";
static const char SM_RECEIVE_DEST_SESSION[] =
  "Receive packet ($32$) dump ($33$) "
  "from destination session id ($16$) "
  "from $26$:$27$ on $28$:$29$";
static const char SM_INIT_SRC_SESSION[] =
  "Auth seession timeout "
  "from source session id ($15$) "
  "from $28$:$29$ on $26$:$27$";
static const char SM_INIT_DEST_SESSION[] =
  "Auth seession timeout "
  "from destination session id ($16$) "
  "from $26$:$27$ on $28$:$29$";
static const char SM_INACT_SRC_SESSION[] =
  "Inactivity seession timeout "
  "from source session id ($15$) "
  "from $28$:$29$ on $26$:$27$";
static const char SM_INACT_DEST_SESSION[] =
  "Inactivity seession timeout "
  "from destination session id ($16$) "
  "from $26$:$27$ on $28$:$29$";
static const char SM_CREATE_SRC_SESSION[] =
  "Create source session from $28$:$29$ on $26$:$27$";
static const char SM_CREATE_DEST_SESSION[] =
  "Create destination session from $26$:$27$ on $28$:$29$";
static const char SM_DESTROY_SRC_SESSION[] =
  "Destroy source session from $28$:$29$ on $26$:$27$";
static const char SM_DESTROY_DEST_SESSION[] =
  "Destroy destination session from $26$:$27$ on $28$:$29$";

} // namespace logtemplates

} // namespace smsrouter

#endif // LOG_MESSAGE_TEMPLATES_H
